package com.lupan.spring.data.jpa.dao;

import org.codehaus.jackson.map.ObjectMapper;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * 说明：
 *
 * @author lupan
 * @version 2017/3/24 15:34
 */
public class Main {

    public static void main(String[] args){
        ObjectMapper objectMapper = new ObjectMapper();
        String s = "{\n" +
                "            \"301\": {\n" +
                "                \"title\": \"微信公众号\",\n" +
                "                \"value\": {\n" +
                "                    \"30101\": \"微信服务号注册\",\n" +
                "                    \"30102\": \"微信服务号推荐\",\n" +
                "                    \"30103\": \"活动报名\"\n" +
                "                }\n" +
                "            },\n" +
                "            \"302\": {\n" +
                "                \"title\": \"经销商\",\n" +
                "                \"value\": {\n" +
                "                    \"30201\": \"展厅客户/到店\",\n" +
                "                    \"30202\": \"外拓客户\",\n" +
                "                    \"30203\": \"保有客户\",\n" +
                "                    \"30204\": \"转介绍\",\n" +
                "                    \"30205\": \"其他\",\n" +
                "                    \"30206\": \"信息搜索\",\n" +
                "                    \"30207\": \"网络\",\n" +
                "                    \"30208\": \"代销网店\",\n" +
                "                    \"30209\": \"展厅客户/来电\",\n" +
                "                    \"30210\": \"实销\",\n" +
                "                    \"30299\": \"购车\"\n" +
                "                }\n" +
                "            },\n" +
                "            \"303\": {\n" +
                "                \"title\": \"客户支持中心\",\n" +
                "                \"value\": {\n" +
                "                    \"30301\": \"400呼入\",\n" +
                "                    \"30302\": \"400呼出\"\n" +
                "                }\n" +
                "            },\n" +
                "            \"304\": {\n" +
                "                \"title\": \"厂家获取\",\n" +
                "                \"value\": {\n" +
                "                    \"30401\": \"汽车之家会员集采\",\n" +
                "                    \"30402\": \"易车网会员集采\",\n" +
                "                    \"30403\": \"其他（可配置）\"\n" +
                "                }\n" +
                "            },\n" +
                "            \"305\": {\n" +
                "                \"title\": \"车联网\",\n" +
                "                \"value\": {\n" +
                "                    \"30501\": \"车联网注册\",\n" +
                "                    \"30502\": \"车联网推荐\"\n" +
                "                }\n" +
                "            },\n" +
                "            \"306\": {\n" +
                "                \"title\": \"官网\",\n" +
                "                \"value\": {\n" +
                "                    \"30601\": \"官网注册\",\n" +
                "                    \"30602\": \"产品手册下载\",\n" +
                "                    \"30603\": \"官网预约试驾\",\n" +
                "                    \"30604\": \"在线商城下单\"\n" +
                "                }\n" +
                "            },\n" +
                "            \"307\": {\n" +
                "                \"title\": \"文本坐席\",\n" +
                "                \"value\": {\n" +
                "                    \"30701\": \"微信服务号\",\n" +
                "                    \"30702\": \"微信订阅号\",\n" +
                "                    \"30703\": \"官网对话框\",\n" +
                "                    \"30704\": \"官方论坛\"\n" +
                "                }\n" +
                "            },\n" +
                "            \"308\": {\n" +
                "                \"title\": \"云中展厅\",\n" +
                "                \"value\": {\n" +
                "                    \"30801\": \"云中展厅客户来电\",\n" +
                "                    \"30802\": \"云中展厅预约试驾\",\n" +
                "                    \"30803\": \"云中展厅用户咨询\",\n" +
                "                    \"30804\": \"云中展厅用户投诉\"\n" +
                "                }\n" +
                "            }\n" +
                "        }";

        try {
            Map map = objectMapper.readValue(s, HashMap.class);

            System.out.println(1);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
